package cn.ruauto.config;

import cn.ruauto.log.YuLogInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author zYu
 * @version 1.0
 * @create 2023-04-08 13:37
 */
@Configuration
public class YuLogAutoConfiguration implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new YuLogInterceptor());
    }
}
